Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 6 - Configuration Management / Configuration Management Reference
Functions / Initializing and Closing Open Transport


CloseOpenTransport

Shuts down the Open Transport software when you are finished using it.

C INTERFACE
void CloseOpenTransport(void);
C++ INTERFACES
None. C++ applications use the C interface to this function.

DESCRIPTION
The CloseOpenTransport function closes the Open Transport software, which tells Open Transport that your client has finished using it. Stand-alone code segments must use this function before they unload from memory.

When applications finish using Open Transport, they have the option of using this function to unload the Open Transport software modules without stopping execution if they have other tasks to perform that do not require Open Transport; otherwise, applications don't need to use this function.

SPECIAL CONSIDERATIONS
If your client uses the Apple Shared Library Manager, you must call the CleanupLibraryManager function before calling the CloseOpenTransport function.

System software cannot unload Open Transport until the last software
module on your computer that called the InitOpenTransport or InitOpenTransportUtilities function has also called the CloseOpenTransport function.

If your client is not an application, you must be sure to call the CloseOpenTransport function before unloading from memory.

SEE ALSO
To initialize all of the Open Transport software, call the InitOpenTransport function (page 6-23).

To initialize only the port-handling part of Open Transport, call the InitOpenTransportUtilities function (page 6-25).

For more information about initializing Open Transport, see the section "Initializing Open Transport" (page 6-9).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996